package models;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "apartments")
public class Apartments implements Serializable {

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = -8559817294235161928L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name="apart_id")
	private int id;
	
	private String code;
	
	private String name;
	
	private int numberBed;
	
	private int numberBath;
	
	private double size;
	
	private String petAllow;
	
	private String neightbour;
	
	private String thumb;
	
	private String type;
	
	private double price;
	
	private Date lastUpdate;
	
	private int yearBuild;
	
	private double latitude;
	
	private double longtitude;
	
	private String desc;
	
	private String shortDesc;
	
	private String additionDesc;
	
	private String longDesc;
	
	private String addressNumberRoom;
	
	private int street;

	private String floor;
	
	private String addressNo;
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getNumberBed() {
		return numberBed;
	}

	public void setNumberBed(int numberBed) {
		this.numberBed = numberBed;
	}

	public int getNumberBath() {
		return numberBath;
	}

	public void setNumberBath(int numberBath) {
		this.numberBath = numberBath;
	}

	public double getSize() {
		return size;
	}

	public void setSize(double size) {
		this.size = size;
	}

	public String getPetAllow() {
		return petAllow;
	}

	public void setPetAllow(String petAllow) {
		this.petAllow = petAllow;
	}

	public String getNeightbour() {
		return neightbour;
	}

	public void setNeightbour(String neightbour) {
		this.neightbour = neightbour;
	}

	public String getThumb() {
		return thumb;
	}

	public void setThumb(String thumb) {
		this.thumb = thumb;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public Date getLastUpdate() {
		return lastUpdate;
	}

	public void setLastUpdate(Date lastUpdate) {
		this.lastUpdate = lastUpdate;
	}

	public int getYearBuild() {
		return yearBuild;
	}

	public void setYearBuild(int yearBuild) {
		this.yearBuild = yearBuild;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public double getLongtitude() {
		return longtitude;
	}

	public void setLongtitude(double longtitude) {
		this.longtitude = longtitude;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getShortDesc() {
		return shortDesc;
	}

	public void setShortDesc(String shortDesc) {
		this.shortDesc = shortDesc;
	}

	public String getAdditionDesc() {
		return additionDesc;
	}

	public void setAdditionDesc(String additionDesc) {
		this.additionDesc = additionDesc;
	}

	public String getLongDesc() {
		return longDesc;
	}

	public void setLongDesc(String longDesc) {
		this.longDesc = longDesc;
	}

	public String getAddressNumberRoom() {
		return addressNumberRoom;
	}

	public void setAddressNumberRoom(String addressNumberRoom) {
		this.addressNumberRoom = addressNumberRoom;
	}

	public int getStreet() {
		return street;
	}

	public void setStreet(int street) {
		this.street = street;
	}

	public String getFloor() {
		return floor;
	}

	public void setFloor(String floor) {
		this.floor = floor;
	}

	public String getAddressNo() {
		return addressNo;
	}

	public void setAddressNo(String addressNo) {
		this.addressNo = addressNo;
	}
	
	public Apartments(){
	}
	
}
